# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=perl-digest-perl-md5
_pkgname=Digest-Perl-MD5
pkgver=1.9
pkgrel=11
pkgdesc='Perl implementation of Ron Rivests MD5 Algorithm.'
arch=('any')
url='http://search.cpan.org/dist/Digest-Perl-MD5'
license=('GPL' 'PerlArtistic')
depends=('perl')
options=('!emptydirs')
source=("http://search.cpan.org/CPAN/authors/id/D/DE/DELTA/$_pkgname-$pkgver.tar.gz")
sha512sums=('015a1f046b85b5b89c1b44073d60116d483332cd667cb7230222df9651b7da837a532991e91848ff0b65f171b8870c2c4bda651da4ca54ea75d062ba6a55b525')

prepare() {
  cd  "$_pkgname-$pkgver"

  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}

build() {
  cd  "$_pkgnmae-$pkgver"

  make
}

package() {
  cd  "$_pkgname-$pkgver"

  make DESTDIR="$pkgdir" install

  find "$pkgdir" -name '.packlist' -delete
  find "$pkgdir" -name '*.pod' -delete
}

